#!/bin/bash
cd /app/cloud-microservices
git pull origin master

cd /app/cloud-microservices/cloud-tenant-frontend
npm run build
rm -rf /usr/local/nginx-my-stream/nginx1.16/html/microservices-tenant/*
cp -r dist/* /usr/local/nginx-my-stream/nginx1.16/html/microservices-tenant
echo 'microservices-tenant build success'

